export default [
  {
    path: '/',
    component: () => import('@/views/layout/index.vue'),
    redirect: '/home',
    children: [
      {
        path: 'hospital',
        component: () => import('@/views/hospital/index.vue'),
        redirect: 'hospital/detail',
        children: [
          {
            path: 'register',
            name: '预约挂号',
            component: () =>
              import('@/views/hospital/components/register/index.vue')
          },
          {
            path: 'detail',
            name: '医院详情',
            component: () =>
              import('@/views/hospital/components/detail/index.vue')
          },
          {
            path: 'notice',
            name: '预约须知',
            component: () =>
              import('@/views/hospital/components/notice/index.vue')
          },
          {
            path: 'close',
            name: '停诊信息',
            component: () =>
              import('@/views/hospital/components/close/index.vue')
          },
          {
            path: 'search',
            name: '查询/取消',
            component: () =>
              import('@/views/hospital/components/search/index.vue')
          },
          {
            path: 'step',
            name: '预约步骤',
            component: () =>
              import('@/views/hospital/components/register/register_step1.vue')
          }
        ]
      },
      {
        path: 'home',
        // @ts-ignore
        component: () => import('@/views/home/index.vue')
      }
    ]
  },
  {
    path: '/login',
    component: () => import('@/views/login/index.vue')
  }
]
